package Database;

import main.SearchManager;
import search.Parser;
import search.WebSpider;
import search.impl.Spider;
import sun.security.provider.ConfigFile;
import vo.Program;

import java.io.*;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test
{
	public static void main(String[] args)
	{
		DatabaseOperator operator = new DatabaseOperator();
		int count = 0;

		Spider spider = new Spider();
		for (Program program : Spider.spider())
		{
			operator.insert(program);
		}
		long time3 = System.currentTimeMillis();
		int count1 = operator.count();
		long time4 = System.currentTimeMillis();




	}

}